(Al-Fath'h) 48 : 27
لَقَدْ صَدَقَ اللَّهُ رَسُولَهُ الرُّؤْيَا بِالْحَقِّ ۖ لَتَدْخُلُنَّ الْمَسْجِدَ الْحَرَامَ إِنْ شَاءَ اللَّهُ آمِنِينَ مُحَلِّقِينَ رُءُوسَكُمْ وَمُقَصِّرِينَ لَا تَخَافُونَ ۖ فَعَلِمَ مَا لَمْ تَعْلَمُوا فَجَعَلَ مِنْ دُونِ ذَٰلِكَ فَتْحًا قَرِيبًا

Surely, Allah has testified His Messenger’s vision with the Truth: "If Allah intends, certainly you will enter the Sacred Masjid securely as your heads are shaved or cut in short without fearing"; then He knew what you don’t know, then He made a Nearby Victory besides that.

The vision of the Messenger in his sleep was that the Messenger and believers would enter the Sacred Masjid with their heads shaved and the hairs of the head cut short without fearing anything or anyone. Based on this, in the sixth year of Hijra, the Messenger and believers started for Mecca to perform ‘Umra’. But on the way there, the disbelievers were obstructing them at ‘Hudaibiya’ without allowing them to enter Mecca. According to the treaty made between the believers and disbelievers, in that year they had to return to Medina without performing ‘Umra’ and in the coming year they could enter Mecca and perform ‘Umra’. So they sacrificed their sacrificial animals, which they brought with them at ‘Hudaibiya’, and in the next year (seventh year of Hijra), according to the treaty, they went to Mecca and performed ‘Umra’ safely. ‘The Nearby Victory’ mentioned in the verse is the ‘Meccan Victory’ given to the Messenger and believers in the eighth year of Hijra. See explanation 32: 28-30; and 48: 1-3.